//
//  ViewController.swift
//  PrograssDemo
//
//  Created by Apple on 15/10/26.
//  Copyright © 2015年 turbo. All rights reserved.
//

import UIKit

class ViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        // Do any additional setup after loading the view, typically from a nib.
        print("hello")
        print("sdfsadfsadfa")

        Progress.progress = 0
        NSTimer.scheduledTimerWithTimeInterval(1, target: self, selector: "changeVariable:", userInfo: nil , repeats: true)
        
    }
    
    
    
    func changeVariable (send :NSTimer )
    {
        Progress.progress=Progress.progress + 0.1
        if (Progress.progress >= 1)
        {
            send.invalidate()
        }
        
    }

  
    @IBOutlet weak var Progress: UIProgressView!
    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }


}

